-- GENERATED SPELL FOR [Unworthy Initiate] --


function spell0_29567(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29567', 630, 1)
end

function spell1_29567(pUnit, Event) --@Death Coil,n/a--
pUnit:FullCastSpellOnTarget(52375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29567', 568, 1)
end

function spell2_29567(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29567', 20000, 1)
end

function spell3_29567(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(52373,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29567', 12000, 1)
end

function Sorts_29567(pUnit, Event)
local choix_sorts_29567 = math.random(0, 3)
if choix_sorts_29567 == 0 then
pUnit:RegisterEvent('spell0_29567', 1, 1)
end
if choix_sorts_29567 == 1 then
pUnit:RegisterEvent('spell1_29567', 1, 1)
end
if choix_sorts_29567 == 2 then
pUnit:RegisterEvent('spell2_29567', 1, 1)
end
if choix_sorts_29567 == 3 then
pUnit:RegisterEvent('spell3_29567', 1, 1)
end
end

function mob29567_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29567', math.random(1500, 3000), 1)
end

function mob29567_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29567_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29567_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29567, 1, 'mob29567_Action')
RegisterUnitEvent(29567, 2, 'mob29567_Leave')
RegisterUnitEvent(29567, 3, 'mob29567_Kill')
RegisterUnitEvent(29567, 4, 'mob29567_Die')
